package com.yunfangdata.mapper;

import com.yunfangdata.domain.Department;
import com.yunfangdata.domain.Staff;
import com.yunfangdata.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StaffMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Staff record);

    Staff selectByPrimaryKey(Long id);

    List<Staff> selectAll();

    int updateByPrimaryKey(Staff record);

    int queryForCount(QueryObject qo);

    List<Staff> queryForList(QueryObject qo);

    void updateByPersonageSalaryId(@Param("id") Long id , @Param("staffId") Long staffId);
}